<div class="topBar">
      <div class="topTitle">友情链接列表</div>
      <div class="topButton"><a href="/admin/add-friend-link" target="_self"><img src="/images/admin/addNew.gif"/></a></div>
    </div>
    
	<table cellspacing="0" cellpadding="0" border="0" class="listTable">
	<tbody>
	  <tr class="thead">
		<td>图片</td>
		<td>友情链接名称</td>
		<td>显示顺序</td>
		<td>是否生效</td>
		<td>操作</td>
	  </tr>
	  <?php
	  foreach ($this->links as $link){
	  	?>
	 
	  <tr>
		<td><img src='/images/friendlink/<?php echo $link->image;?>'/></td>
		<td><a target="_self" href="/admin/edit-friend-link/id/<?php echo $link->id;?>"><?php echo $link->name;?></a></td>
		<td><?php echo $link->display_order;?></td>
		<td><?php echo $link->enabled ? "生效" : "失效";?></td>
		
		<td><a target="_self" href="/admin/edit-friend-link/id/<?php echo $link->id;?>">编辑</a>
		&nbsp;&nbsp;&nbsp;&nbsp;
		<a target="_self" href="/admin/delete-friend-link/id/<?php echo $link->id;?>">删除</a></td>
	  </tr>
	  <?php
	   }
	  ?>
	</tbody>
	</table>